#include <QString>
#include "GatherFactory.h"
#include "DataGatherHRF9828.h"

std::unique_ptr<IDataGather> GatherFactory::create(int type)
{
    IDataGather *ptr = nullptr;
    if (type == DEVICE_HRF9828)
        ptr = new DataGatherHRF9828();

    Q_ASSERT(ptr);
    return std::unique_ptr<IDataGather>(ptr);
}